package com.csweimei.rentmanagementtreasure.tenant.ui.act.house;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import com.chad.library.BR;
import com.csweimei.rentmanagementtreasure.R;
import com.csweimei.rentmanagementtreasure.base.AppConfig;
import com.csweimei.rentmanagementtreasure.databinding.ActivityAddMoreHzBinding;
import com.csweimei.rentmanagementtreasure.http.postBean.PostHouseHzBean;
import com.csweimei.rentmanagementtreasure.tenant.viewModel.MoreHzVm;

import me.goldze.mvvmhabit.base.BaseActivity;

public class AddMoreHzActivity extends BaseActivity<ActivityAddMoreHzBinding, MoreHzVm> {


    @Override
    public int initContentView(Bundle savedInstanceState) {
        return R.layout.activity_add_more_hz;
    }

    PostHouseHzBean postHouseHzBean;

    @Override
    public void initParam() {
        super.initParam();
        postHouseHzBean = (PostHouseHzBean) getIntent().getSerializableExtra(AppConfig.BUNDLE_KEY2);
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;

    }

    @Override
    public void initData() {
        super.initData();
        viewModel.setActivity(this);
        viewModel.entity.set(postHouseHzBean);
    }
}